package com.amoyt.project.domain.vo;

import com.amoyt.project.domain.pojo.ArticleContentBlock;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @Date: 2025/8/26
 * @Time: 14:58
 * @Author: TQ_QT
 * @Description:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class NewsDetailVo {


    @Schema(description = "关联项目 id，默认为null")
    private String projectId;

    @Schema(description = "文章标题")
    private String articleTitle;

    @Schema(description = "图片标题")
    private String imageTitle;

    @Schema(description = "分类(1-公示公告,2-通知公告,3-意见征集公告,4-新闻发布)")
    private Integer category;

    @Schema(description = "公示人ID")
    private String publisherId;

    @Schema(description = "公示人姓名")
    private String publisherName;

    @Schema(description = "公示单位")
    private String publishUnit;

    @Schema(description = "发布状态(0-草稿,1-已发布)")
    private Boolean isPublished;

    @Schema(description = "发布时间")
    private LocalDateTime publishTime;

    @Schema(description = "是否公开信息(0-默认不公开，1-公开)")
    private Integer isOpen;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "创建人")
    private String createBy;

    @Schema(description = "内容块")
    private List<ArticleContentBlock> contentBlocks;
}
